package com.pattern.claims.base;


import com.claims.UserClaimsApply;

/**
 * Created by 峥桂 on 2017/6/9.
 */
public abstract class BaseAbstractLink {

    protected UserClaimsApply userClaimsApply;
    protected String currentLinkValue;

    //认领环节
    public abstract void taskClaim();

    //理赔处理环节
    public abstract void taskHandler();

    //理赔处理问题环节
    public abstract void taskProblem();

    //理赔处理完毕环节
    public abstract void taskFinished();

    public UserClaimsApply getUserClaimsApply() {
        return userClaimsApply;
    }

    public void setUserClaimsApply(UserClaimsApply userClaimsApply) {
        this.userClaimsApply = userClaimsApply;
    }

    public String getCurrentLinkValue() {
        return currentLinkValue;
    }

    public void setCurrentLinkValue(String currentLinkValue) {
        this.currentLinkValue = currentLinkValue;
    }

    protected boolean checkCurrentStatus(int currentStatus){
       return userClaimsApply.getHandlestatus().intValue()==currentStatus;
    }

}
